<?
session_start();
$key = $_REQUEST["key"];
if (!empty($key)) {
	$reg_key = $_SESSION["reg_key"];
	$num = (int) $reg_key;
	$num = ($num + 8) * 8 - 8;
	if ($key == (string) $num) {
		$_SESSION["reg_checked"] = true;
		header("location: register.php");
		die();
	}
}
$reg_key = rand(0, 10000);
$_SESSION["reg_key"] = $reg_key;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CMP交流论坛 - 注册确认</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="CMP,BBS,CenFun" />
<meta name="Description" content="CMP2009 - bbs.cenfun.com" />
<meta name="copyright" content="2005-2009 Cenfun.Com" />
</head>
<style type="text/css">
html, body { height:100%; margin:0; padding:0; overflow:hidden; text-align:center; background:#f5f5f5; }
.main { position:absolute; width:402px; height:320px; top:50%; left:50%; margin-left:-201px; margin-top:-160px; }
.title { height:20px; line-height:20px; font-size:12px; font-weight:bold; color:#666; }
.flash { border:1px solid #ccc; background:#fff; width:400px; }
</style>
<body>
<div class="main">
  <div class="title">为减少机器人恶意注册，请手动点击下面图中的下一步按钮继续：</div>
  <div class="flash">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="300" id="reg_next">
      <param name="allowFullScreen" value="true" />
      <param name="allowScriptAccess" value="always" />
      <param name="movie" value="reg_next.swf" />
      <param name="flashvars" value="key=<? echo $reg_key ?>" />
      <embed type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" name="reg_next" width="400" height="300" src="reg_next.swf" flashvars="key=<? echo $reg_key ?>"></embed>
    </object>
  </div>
</div>
<script type="text/javascript">
function nextHandler(key) {
	window.location = "?key=" + key;
}
</script>
</body>
</html>
